package top.zhmq.goodsprovider.dao;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import top.zhmq.commonmodule.model.Goods;

import java.util.List;

/**
 * 商品
 *
 * @author Glory
 * @classname GoodsDao
 * @create 2021-06-03 10:35
 */

@Mapper
@Component
public interface GoodsDao {
    List<Goods> getAllgoods();//查询所有商品

    List<Goods> getOnegoods(@Param(value = "gname") String gname);//根据商品名称模糊查找

    Goods getOnegid(@Param(value = "gid") int gid);//根据id查询单个商品详情
}
